package hera;

import com.sun.org.apache.regexp.internal.RE;

/**
 * Created by liyi on 2017/10/8.
 */
public class SingleTon {
    SingleTon(){}
    private static SingleTon TON=null;

    public static SingleTon getTON() {
        if (TON == null) {
            synchronized (TON) {
                if (TON == null)
                    TON = new SingleTon();
            }
        }
        return TON;
    }
}
